<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>{:session('cp.cpsysname')}--商户管理平台</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <meta name="description" content="{:config('webconfig.description');}">
    <meta name="keywords" content="{:config('webconfig.keywords');}">
    <meta name="author" content="runoob">
    <link href="__STATIC_URL__/static/css/bootstrap.css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="__STATIC_URL__/static/css/index.css"/>
    <link rel="stylesheet" type="text/css" href="__STATIC_URL__/static/css/cardinfo.css"/>
    <link rel="stylesheet" type="text/css" href="__STATIC_URL__/static/member/css/core1.css?v=3"/>

    <script src="__STATIC_URL__/static/js/jquery-2.1.4.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="__STATIC_URL__/static/bootstrap/3.3.7/js/bootstrap.min.js" type="text/javascript"
            charset="utf-8"></script>
    <script src="__STATIC_URL__/static/js/commen.js" type="text/javascript" charset="utf-8"></script>
    <style>
        .checkbox input[type="checkbox"], .checkbox input[type="radio"] {
            width: 18px;
            height: 18px;
            margin-top: 1px;
        }
    </style>
</head>
<body id="body">
{include file='public/header'/}
<!------------------导航-------------------------->
<section>
    {include file='public/left'/}
    <!--------------------------主要内容区域------------------------------------->
    <div class="content">
        <div class="panel mgl15 mgr15">
            <div class="panel-body">
                <!--路径导航-->
                <ol class="breadcrumb">
                    <li>
                        <a href="{:url('alicards/cardinfoali',['template_id'=>$card['template_id']])}">会员卡</a>
                    </li>
                    <li class="active">分享设置</li>
                </ol>
                <!--创建会员卡主要内容-->
                <div class="card-content mgl15 mgr15 clearfix">
                    <div class="panel panel-default ng-scope">
                        <div class="panel-heading">
                            积分设置规则列表
                        </div>
                        <div class="panel-body">
                            <table class="table table-bordered">
                                <thead>
                                <tr>
                                    <td>分享标题</td>
                                    <td>赠送积分</td>
                                    <td>赠送余额</td>
                                    <td>状态</td>
                                    <td>创建时间</td>
                                    <td class="text-center">操作</td>
                                </tr>
                                </thead>
                                <tbody>
                                {volist name="list" id="vo"}
                                <tr ng-if="!instances.list.length" class="ng-scope">
                                    <td>{$vo.title}</td>
                                    <td>{$vo.reward_bonus}</td>
                                    <td>{$vo.reward_balance}</td>
                                    <td>
                                        <a class="btn-link" href="{:url('marke/statushareali',['id'=>$vo['id'],'statu'=>$vo['statu'],'template_id'=>$card['template_id']])}">
                                            {switch name="vo.statu"}
                                            {case value="1"}已关闭{/case}
                                            {case value="0"}已开启{/case}
                                            {default /}未知
                                            {/switch}
                                        </a>
                                    </td>
                                    <td>{$vo.create_time}</td>
                                    <td>
                                        <a class="btn-link" href="{:url('marke/sharecountali',['id'=>$vo['id'],'template_id'=>$card['template_id']])}">
                                            记录详情
                                        </a>
                                        <a class="btn-link" href="{:url('marke/delshareali',['id'=>$vo['id'],'template_id'=>$card['template_id']])}">
                                            | 删除
                                        </a>
                                    </td>
                                </tr>
                                {/volist}
                                </tbody>
                            </table>
                            {notempty name="card.sharelink"}
                            <div class="alert alert-info" role="alert">分享链接：{$card.sharelink}</div>
                            {/notempty}
                        </div>
                    </div>
                    <!--创建会员卡主要内容-->
                    <div class="panel panel-default ng-scope">
                        <div class="panel-heading">
                            会员卡分享配置
                        </div>
                        <form class="form-horizontal " action="" method="post">
                            <div class="panel-body">

                                <div class="form-horizontal ng-scope" data-label="分享标题" data-layout="horizontal">
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label ng-binding">分享标题</label>
                                        <div class="col-sm-10">
                                            <input type="text" class="form-control" name="title" placeholder="" value="{$info.title}" required="required">
                                        </div>
                                    </div>
                                </div>
                                <div class="form-horizontal ng-scope" data-label="分享描述">
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label ng-binding">分享描述</label>
                                        <div class="col-sm-10">
                                            <textarea class="form-control" style="resize: none;" rows="4" maxlength="32" name="description" placeholder="" required="required">{$info.description}</textarea>
                                        </div>
                                    </div>
                                </div>

                                <div class="form-horizontal ng-scope" data-label="奖励积分" data-layout="horizontal">
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">奖励积分</label>
                                        <div class="col-sm-10">
                                            <input type="text" class="form-control" name="reward_bonus" placeholder="" value="{$info.reward_bonus}">
                                            <div class="r-desc ng-binding ng-scope">被推荐人开卡后，推荐人奖励对应积分</div>
                                        </div>
                                    </div>
                                </div>
                                <div class="form-horizontal ng-scope" data-label="奖励储值" data-layout="horizontal">
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label ng-binding">奖励储值</label>
                                        <div class="col-sm-10">
                                            <input type="text" class="form-control"  name="reward_balance"  placeholder="" value="{$info.reward_balance}">
                                            <div class="r-desc ng-binding ng-scope">被推荐人开卡后，推荐人奖励对应储值，单位元
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="form-horizontal ng-scope" data-label="详细说明">
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label ng-binding">详细说明</label>
                                        <div class="col-sm-10">
                                            <textarea class="form-control" style="resize: none;" rows="4" name="content" placeholder="">{$info.content}</textarea>
                                            <div class="r-desc ng-binding ng-scope" >被推荐人打开页面后将显示此说明</div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="panel-footer">
                                <button class="btn btn-success" type="submit">保存</button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
        {include file='public/footer'/}
    </div>
</section>
</body>
</html>
